﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GoStats.Model
{
    public class Site : INotifyPropertyChanged
    {
        private String name;
        private String url;
        private StatsSet todayStats;
        private StatsSet yesterdayStats;
        private StatsSet sevenStats;
        private StatsSet thirtyStats;
        private String thirtyChart;

        public String ThirtyChart
        {
            get { return thirtyChart; }
            set { thirtyChart = value; NotifyPropertyChanged("ThirtyChart"); }
        }

        public StatsSet YesterdayStats
        {
            get { return yesterdayStats; }
            set { yesterdayStats = value; NotifyPropertyChanged("YesterdayStats"); }
        }

        public StatsSet SevenStats
        {
            get { return sevenStats; }
            set { sevenStats = value; NotifyPropertyChanged("SevenStats"); }
        }

        public StatsSet ThirtyStats
        {
            get { return thirtyStats; }
            set { thirtyStats = value; NotifyPropertyChanged("ThirtyStats"); }
        }

        public StatsSet TodayStats
        {
            get { return todayStats; }
            set { todayStats = value; NotifyPropertyChanged("TodayStats"); }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public String Url
        {
            get { return url; }
            set { url = value; NotifyPropertyChanged("ThirtyChart"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }


    }
}
